package com.tang.netty.bio.client;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.net.Socket;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

@Slf4j
public class BioClient {

    public static void main(String[] args) {
        try {
            Socket socket = new Socket("192.168.100.52", 7397);
            log.info("tang netty demo for bio client start done!");
            BioClientHandler bioClientHandler = new BioClientHandler(socket, StandardCharsets.UTF_8);
            bioClientHandler.start();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    
}
